package com.mf.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.heollhai.common.entity.bo.UserBo;
import com.mf.entity.request.serach.UserSearchRequest;
import org.apache.ibatis.annotations.Param;

/**
* 用户表
*
* @author mf
* @since 2024-08-06
*/
public interface UserMapper extends BaseMapper<UserBo> {
    /**
     * 根据用户名查询用户和用户角色
     */
    UserBo selectUserByUserName(@Param("account") String account);

    /**
     * 分页查询用户和对应角色
     */
    Page<UserBo> pageListUserAndRole(Page<UserBo> page, @Param("params") UserSearchRequest userSearchRequest);
}
